package com.qing.expert.modules.expert.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@Accessors(chain = true)
@TableName(value = "expert_apply", autoResultMap = true)
public class ExpertApply {

    @TableId(type = IdType.ASSIGN_ID)
    private String applyId;

    /**
     * 申请用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 申请分类ID
     */
    @TableField("category_id")
    private String categoryId;

    /**
     * 达人介绍
     */
    @TableField("description")
    private String description;

    /**
     * 资质证明图片URL
     */
    @TableField(value = "certificate_images", typeHandler = JacksonTypeHandler.class)
    private List<String> certificateImages;

    /**
     * 申请状态：0=待审核，1=已通过，2=已拒绝
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 审核时间
     */
    @TableField("audit_time")
    private LocalDateTime auditTime;

    /**
     * 最低价格
     */
    @TableField("price_min")
    private BigDecimal priceMin;

    /**
     * 最高价格
     */
    @TableField("price_max")
    private BigDecimal priceMax;
}